import request from '@/utils/request'
import type { ResponseData } from '../type'

// 性别统计
export const singerSexCountApi = () => request.get<any, ResponseData>('/singer/sexCount')

// 查询所有歌手信息
export const singerFindAllApi = () => request.get<any, any>('/singer')

// 条件查询:params参数
export const singerFindBySearchApi = (params: any) => request.get<any, any>('/singer/search', { params })

// 新增or修改
export const singerSaveApi = (singer: any) => request.post<any, any>('/singer', singer)

// 删除
export const singerDeleteApi = (id: any) => request.delete<any, any>('/singer/' + id)
